package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/16.
 */

public class FixType implements Parcelable {

    /**
     * id : 530dac42e5e54623a647a80eca717e69
     * code : WXLX004
     * pid : 3dadad552c5d4f77ae0fd4f2ec83bb43
     * name : 零件修理
     * isInner : 1
     * states : 1
     * note : 零件修理
     */

    private String id;
    private String code;
    private String pid;
    private String name;
    private int isInner;
    private int states;
    private String note;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIsInner() {
        return isInner;
    }

    public void setIsInner(int isInner) {
        this.isInner = isInner;
    }

    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.code);
        dest.writeString(this.pid);
        dest.writeString(this.name);
        dest.writeInt(this.isInner);
        dest.writeInt(this.states);
        dest.writeString(this.note);
    }

    public FixType() {
    }

    protected FixType(Parcel in) {
        this.id = in.readString();
        this.code = in.readString();
        this.pid = in.readString();
        this.name = in.readString();
        this.isInner = in.readInt();
        this.states = in.readInt();
        this.note = in.readString();
    }

    public static final Parcelable.Creator<FixType> CREATOR = new Parcelable.Creator<FixType>() {
        @Override
        public FixType createFromParcel(Parcel source) {
            return new FixType(source);
        }

        @Override
        public FixType[] newArray(int size) {
            return new FixType[size];
        }
    };
}
